php check if associative array is null

42

php check if associative array is null -

  if (in_array(null, $array, true) || in_array('', $array, true)) {
    // There are null (or empty) values.
  }

Comments

Submit
0 Comments